function allvehs = create_allvehs(files)

N = size(files,1);

total_entries = 0;
vehs = cell(N,1);

for i = 1:N
    vehs{i} = textread([files{i} '.txt']);
    total_entries = total_entries+size(vehs{i},1);
end

allvehs = zeros(total_entries,4);

index = 1;
for i = 1:N
    for v = 1:size(vehs{i},1)
        allvehs(index,1) = i;
        allvehs(index,2:4) = vehs{i}(v,1:3);
        index = index+1;
    end
end

t = 1217228400000; %July 28
allvehs(:,2) = allvehs(:,2)-t;
allvehs(:,2) = allvehs(:,2)./1000;

save('allvehs','allvehs');